package com.tj.view.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.tj.view.R;
import com.tj.view.view.MarqueeView;

import java.util.ArrayList;
import java.util.List;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Created by Administrator on 2016/11/9 0009.
 *
 *
 */
public class MarqueeActivity extends AppCompatActivity{

    private static final String TAG = "MarqueeActivity";
    @Bind(R.id.marqueeView_top)
    MarqueeView mMarqueeView;
    @Bind(R.id.marqueeView2)
    MarqueeView mMarqueeView2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_marqueeview);
        ButterKnife.bind(this);

        List<String> info = new ArrayList<>();
        info.add("1. 我走拉，哦！");
        info.add("2. 我又来拉，哈哈");
        info.add("3. 来不来啊，哒哒");

        //垂直滚动
        mMarqueeView.startWithList(info);
        //水平滚动
        mMarqueeView2.startWithList(info);
    }




}
